#include <iostream>
#include <vector>
#include <string>

using namespace std;

// 9. 回文数
// https://leetcode.cn/problems/palindrome-number/description/

class Solution
{
public:
    bool isPalindrome(int x)
    {
        if (x < 0 || x > 0 && x % 10 == 0)
        {
            return false;
        }
        int ret = 0;
        while ((x/10) > ret)
        {
            ret *= 10;
            ret += (x % 10);
            x /= 10;
        }
        return ret == x || ret == x/10;
    }
};

int main()
{
    return 0;
}